package com.dx.VegetableOxygenBarBackEnd.model.enums;

import lombok.Getter;

@Getter
public enum UserRoleType{
    DEFALUT_USER(0, "普通用户"),
    ADMIN_USER(1, "管理员"),

    ;
    private final int value;
    private final String desc;

    UserRoleType(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public boolean equalsValue(Integer value){
        if (value == null) {
            return false;
        }
        return getValue() == value;
    }
}
